Einhugur Xml Plugin for Xojo

EinhugurXml.Node Class (console safe)

Class to represent a single Node in the Xml document.

Object
   Node

class EinhugurXml.Node

Constructors

NodePrivate constructor.

Properties

EmptyReturns true if the Attribute is empty.
NameSets or gets the name of the node.
TextValueThis property is like a smart macro to do the complicated thing of getting Text value from a child Text node, and it will get the text without drilling down onto the Text node.
TypeReturns type of the node.
ValueSets or gets value for Nodes that can have values.

Methods

AppendAttributeAppends new attribute to the node.
AppendChildAppends a child with a given name to the node, returning the newly created node.
AppendChildAppends a child node of given type to the node, returning the newly created node.
AppendCopyCopies the specified attribute to become a attribute of this node by appending it.
AppendCopyCopies the specified node to become a child of this node by appending it.
AppendMoveMoves the specified node to become a child of this node by appending it.
AttributeReturns attribute by name or empty attribute if not found, unless if the create parameter is true then if not found a newly appended attribute will be returned.
ChildReturns first child by a given name, or empty node if not found, unless if the create parameter is true then if not found a newly appended node will be returned.
ChildValueReturns the value of the first child with type NODE_PCDATA or NODE_CDATA.
ChildValueWrapper shortcut for Child(name).ChildValue()
ChildrenReturns iterator for all child nodes of the node.
ChildrenReturns iterator for all children of the node with a given name.
FindChildByAttributeFinds child node by Attribute value without evaluating node names.
FindChildByAttributeFinds child node by Attribute value within set of nodes with specific name.
FirstAttributeReturns first attribute on the node.
FirstChildReturns first child node.
FirstElementByPathFinds first node in the tree by given path, returning the found element or empty node.
InsertAttributeAfterInserts attribute after other attribute.
InsertAttributeBeforeInserts attribute before other attribute.
InsertChildAfterInserts child with given name after a specific child node.
InsertChildAfterInserts child of specific type after a specific child node.
InsertChildBeforeInserts child with given name before a specific child node.
InsertChildBeforeInserts child of specific type before a specific child node.
InsertCopyAfterCopies the specified attribute to become a attribute of this node by inserting the node after a specific attribute.
InsertCopyAfterCopies the specified node to become a child of this node by inserting the node after a specific node.
InsertCopyBeforeCopies the specified attribute to become a attribute of this node by inserting the node before a specific attribute.
InsertCopyBeforeCopies the specified node to become a child of this node by inserting the node before a specific node.
InsertMoveAfterMoves the specified node to become a child of this node by inserting the node after a specific node.
InsertMoveBeforeMoves the specified node to become a child of this node by inserting the node before a specific node.
LastAttributeReturns last attribute on the node.
LastChildReturns last child node.
NextSiblingReturns next sibling node.
NodeAttributesReturns iterator for attributes on the node.
Operator_CompareCompares if nodes are the same node under the hood.
ParentReturns the parent node or empty node if there was no parent.
PrependAttributePrepends new attribute to the node.
PrependChildPrepends a child with a given name to the node, returning the newly created node.
PrependChildPrepends a child node of given type to the node, returning the newly created node.
PrependCopyCopies the specified attribute to become a attribute of this node by prepending it.
PrependCopyCopies the specified node to become a child of this node by prepending it.
PrependMoveMoves the specified node to become a child of this node by prepending it.
PreviousSiblingReturns previous sibling node.
RemoveAllAttributesRemoves all attributes from the node, returning true if successful.
RemoveAllChildrenRemoves all child nodes from the node, returning true if successful.
RemoveAttributeRemoves attribute.
RemoveAttributeRemoves attribute by name, returning true if attribute was removed, else false.
RemoveChildRemoves child node by name, returning true if successful.
RemoveChildRemoves child node, returning true if successful.
RootReturns the root node.
SelectNodeThe SelectNode function compiles the XPath expression and then executes it with the node as a context node, and returns the result as a single XPathNode, the node that makes the first hit. The function can optionally take in XPath variables.
SelectNodesThe SelectNodes function compiles the XPath expression and then executes it with the node as a context node, and returns the resulting node set. The function can optionally take in XPath variables.
TextReturns TextHelper class to read or write a Text node, optionally creating new text node if it does not exist.
ToStringConverts the Node and all nodes under it to xml string.
ToStringConverts the Node and all nodes under it to xml string. This variation of the function takes in custom format flags. See constants on the EinhugurXml module.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS